package com.dmx.cep.ws.datamodel;

public class ReturnCode implements java.io.Serializable{
	
	private static final long serialVersionUID = 6251038862953757906L;
	
	private int status;
	
	private int reason;
	
	public static final int STATUS_SUCCESS=0;
	public static final int STATUS_FAILURE=1;
	
	public static final int REASON_SUCCESS=0;
	public static final int REASON_MISSING_REQUIRED_DATA_FIELD=1;
	public static final int REASON_RECORD_NOT_EXISTS=4;
	public static final int REASON_PARSE_ADI_ERROR=7;
	public static final int REASON_INTERNAL_ERROR=9;
	public static final int REASON_FILE_NOT_FOUND=10;

	public ReturnCode(){}
	
	public ReturnCode(int status,int reason){
		this.status=status;
		this.reason=reason;
	}
	
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getReason() {
		return reason;
	}

	public void setReason(int reason) {
		this.reason = reason;
	}
	
	
	
}
